package com.newbingo.dao.imple;

import java.util.Date;
import java.util.List;

import com.newbingo.entity.Agent;
import com.newbingo.util.Pager;

public interface IAgentDao {
  
	public static final String NAME="name";
	public static final String STATUS="status";
	

	public abstract void save(Agent transientInstance);

	public abstract void delete(Agent transientInstance);
	
	public abstract Agent merge(Agent transientInstance);
	
	public abstract List findAll();
	
	public abstract List findByProperty(String propertyName,Object value);
	
	public abstract List findByExample(Agent instance);
	
	public abstract Agent findById(java.lang.Integer id);
	
//	public abstract Agent findByParentId(java.lang.Integer parentId);
	
	public abstract List findByName(Object name);
	
	public abstract List findByStatus(Object status);
	
	public abstract void attachDirty(Agent transientInstance);
	
	public abstract Pager findByPage(int start,int limit);
	
	public abstract Pager findBetSettingByAgentId(int start,int limit,int agentid);
	
	public abstract Pager findSubAgents(int start,int limit,Integer agentId,Integer agentType);
	
	public abstract Agent findByLogin(String uname,String pwd);
	
	
}
